package flyweight

//type Tesla struct {
//	Vin     string
//	Color   string
//	Model   string
//	Screen  string
//	Battery string
//}
//
//func NewTesla(vin, color, model, screen, battery string) *Tesla {
//	return &Tesla{
//		Vin:     vin,
//		Color:   color,
//		Model:   model,
//		Screen:  screen,
//		Battery: battery,
//	}
//}

type Position struct {
	LatX float64
	LatY float64
}

type RunTesla struct {
	Tesla *Tesla
	Pos   *Position
	Speed float32
}

func NewRunTesla(tesla *Tesla) *RunTesla {
	return &RunTesla{
		Tesla: tesla,
	}
}

func (r *RunTesla) SetPos(pos *Position) {
	r.Pos = pos
}

func (r *RunTesla) SetSpeed(speed float32) {
	r.Speed = speed
}
